package com.igeek.boot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jwj
 * @since 2024-01-08
 */
@Data
@TableName("wms_log")
@ApiModel(value="WmsLog对象", description="")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WmsLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志表主键id，自动增长")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "模块名：记录当前操作的模块")
    @TableField("module")
    private String module;

    @ApiModelProperty(value = "具体的操作")
    @TableField("operation")
    private String operation;

    @ApiModelProperty(value = "操作的方法名")
    @TableField("method_name")
    private String methodName;

    @ApiModelProperty(value = "操作方法的具体参数")
    @TableField("method_params")
    private String methodParams;

    @ApiModelProperty(value = "操作人的姓名")
    @TableField("operate_user")
    private String operateUser;

    @ApiModelProperty(value = "操作时间")
    @TableField("operate_time")
    private LocalDateTime operateTime;

    @ApiModelProperty(value = "操作的结果：1代表成功  0代表成功")
    @TableField("result_code")
    private Integer resultCode;

    @ApiModelProperty(value = "具体的操作结果返回信息")
    @TableField("result_message")
    private String resultMessage;

    @ApiModelProperty(value = "方法的执行总时间")
    @TableField("result_time")
    private Integer resultTime;

}
